package lbframework.bean.calendar;

import java.beans.BeanDescriptor;
import java.beans.SimpleBeanInfo;

public class LBCalendarBeanInfo extends SimpleBeanInfo {

    private final static Class beanClass = LBCalendar.class;
    private static BeanDescriptor beanDescriptor = null;
    private static java.awt.Image icon = null;

    @Override
    public BeanDescriptor getBeanDescriptor() {
        beanDescriptor = new BeanDescriptor(beanClass);
        beanDescriptor.setDisplayName("LB Calendar");

        return beanDescriptor;
    }

    @Override
    public java.awt.Image getIcon(int iconKind) {
        if (iconKind == ICON_COLOR_16x16 || iconKind == ICON_MONO_16x16) {
            icon = loadImage("calendar16.png");
        } else if (iconKind == ICON_COLOR_32x32 || iconKind == ICON_MONO_32x32) {
            icon = loadImage("calendar32.png");
        } else {
            icon = null;
        }

        return icon;
    }
}
